package com.huangcy.gulimall.auth.feign;

import com.huangcy.common.utils.R;
import com.huangcy.gulimall.auth.Vo.SocialUserVo;
import com.huangcy.gulimall.auth.Vo.UserLoginVo;
import com.huangcy.gulimall.auth.Vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @program: gulimall
 * @description:
 * @author: huangcy
 * @create: 2022-08-26 15:39
 **/
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVo vo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    public R oauth2login(@RequestBody SocialUserVo socialUser) throws Exception;

}
